/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PnlListReport.java
 *
 * Created on 16 ม.ค. 2553, 17:19:15
 */

package store.frontend;

/**
 *
 * @author Administrator
 */
public class PnlListReport extends javax.swing.JPanel {

    /** Creates new form PnlListReport */
    public PnlListReport() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlListReport = new javax.swing.JPanel();
        lblListReport = new javax.swing.JLabel();
        btnListReportSearch = new javax.swing.JButton();
        btnListReportCancel = new javax.swing.JButton();
        btnListReportPrint = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        lblListReportDate = new javax.swing.JLabel();
        cbbListReportTypeDate = new javax.swing.JComboBox();
        cbbListReportMonth = new javax.swing.JComboBox();
        jScrollPane1 = new javax.swing.JScrollPane();
        tblListReport = new javax.swing.JTable();
        lblListReportIncome = new javax.swing.JLabel();
        txfListReportIncome = new javax.swing.JTextField();
        lblListReportPay = new javax.swing.JLabel();
        txfListReportPay = new javax.swing.JTextField();
        lblListReportTotal = new javax.swing.JLabel();
        txfListReportTotal = new javax.swing.JTextField();
        txfListReportDay = new javax.swing.JTextField();
        txfListReportYear = new javax.swing.JTextField();

        setMaximumSize(new java.awt.Dimension(700, 500));
        setMinimumSize(new java.awt.Dimension(700, 500));
        setPreferredSize(new java.awt.Dimension(700, 500));

        pnlListReport.setBackground(new java.awt.Color(255, 204, 102));
        pnlListReport.setPreferredSize(new java.awt.Dimension(700, 80));

        lblListReport.setFont(new java.awt.Font("Tahoma", 0, 16)); // NOI18N
        lblListReport.setText("รายงานการขาย");

        btnListReportSearch.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        btnListReportSearch.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/search_30x30.gif"))); // NOI18N
        btnListReportSearch.setPreferredSize(new java.awt.Dimension(40, 40));
        btnListReportSearch.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnListReportSearchActionPerformed(evt);
            }
        });

        btnListReportCancel.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        btnListReportCancel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/cancel_30x30.gif"))); // NOI18N
        btnListReportCancel.setPreferredSize(new java.awt.Dimension(40, 40));

        btnListReportPrint.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        btnListReportPrint.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/print_30x30.gif"))); // NOI18N
        btnListReportPrint.setPreferredSize(new java.awt.Dimension(40, 40));
        btnListReportPrint.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnListReportPrintActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pnlListReportLayout = new javax.swing.GroupLayout(pnlListReport);
        pnlListReport.setLayout(pnlListReportLayout);
        pnlListReportLayout.setHorizontalGroup(
            pnlListReportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlListReportLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlListReportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlListReportLayout.createSequentialGroup()
                        .addComponent(btnListReportSearch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnListReportCancel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnListReportPrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(lblListReport))
                .addContainerGap(544, Short.MAX_VALUE))
        );
        pnlListReportLayout.setVerticalGroup(
            pnlListReportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlListReportLayout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addComponent(lblListReport)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlListReportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnListReportSearch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnListReportCancel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnListReportPrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jPanel2.setMaximumSize(new java.awt.Dimension(700, 300));
        jPanel2.setPreferredSize(new java.awt.Dimension(700, 300));

        lblListReportDate.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblListReportDate.setText("วัน/เดือน/ปี :");

        cbbListReportTypeDate.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        cbbListReportTypeDate.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "รายวัน ", "รายอาทิตย์", "รายเดือน", "รายปี" }));
        cbbListReportTypeDate.setPreferredSize(new java.awt.Dimension(30, 21));

        cbbListReportMonth.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        cbbListReportMonth.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "มกราคม ", "กุมภาพันธ์ ", "มีนาคม ", "เมษายน ", "พฤษภาคม ", "มิถุนายน ", "กรกฎาคม ", "สิงหาคม ", "กันยายน ", "ตุลาคม ", "พฤศจิกายน ", "ธันวาคม" }));
        cbbListReportMonth.setPreferredSize(new java.awt.Dimension(30, 21));

        tblListReport.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "วัน/เดือน/ปี", "รายได้", "รายจ่าย", "รายได้สุทธิ์"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane1.setViewportView(tblListReport);

        lblListReportIncome.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblListReportIncome.setText("ค้นหาจากรายได้ :");

        txfListReportIncome.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txfListReportIncome.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txfListReportIncomeActionPerformed(evt);
            }
        });

        lblListReportPay.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblListReportPay.setText("ค้นหาจากรายจ่าย :");

        txfListReportPay.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txfListReportPay.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txfListReportPayActionPerformed(evt);
            }
        });

        lblListReportTotal.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblListReportTotal.setText("ค้นหาจากรายได้สุทธิ์ :");

        txfListReportTotal.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txfListReportTotal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txfListReportTotalActionPerformed(evt);
            }
        });

        txfListReportDay.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txfListReportDay.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txfListReportDayActionPerformed(evt);
            }
        });

        txfListReportYear.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txfListReportYear.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txfListReportYearActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblListReportDate, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblListReportTotal, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblListReportPay, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblListReportIncome, javax.swing.GroupLayout.Alignment.TRAILING))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txfListReportIncome, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txfListReportPay, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txfListReportTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(cbbListReportTypeDate, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(12, 12, 12)
                        .addComponent(txfListReportDay, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(cbbListReportMonth, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txfListReportYear, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(296, 296, 296))
            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 799, Short.MAX_VALUE)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblListReportIncome)
                    .addComponent(txfListReportIncome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblListReportPay)
                    .addComponent(txfListReportPay, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblListReportTotal)
                    .addComponent(txfListReportTotal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblListReportDate)
                    .addComponent(cbbListReportTypeDate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cbbListReportMonth, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txfListReportDay, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txfListReportYear, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(62, 62, 62))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(pnlListReport, javax.swing.GroupLayout.DEFAULT_SIZE, 708, Short.MAX_VALUE)
            .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 708, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(pnlListReport, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 377, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(37, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void btnListReportSearchActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnListReportSearchActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnListReportSearchActionPerformed

    private void btnListReportPrintActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnListReportPrintActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnListReportPrintActionPerformed

    private void txfListReportIncomeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txfListReportIncomeActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_txfListReportIncomeActionPerformed

    private void txfListReportPayActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txfListReportPayActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txfListReportPayActionPerformed

    private void txfListReportTotalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txfListReportTotalActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txfListReportTotalActionPerformed

    private void txfListReportDayActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txfListReportDayActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_txfListReportDayActionPerformed

    private void txfListReportYearActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txfListReportYearActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txfListReportYearActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnListReportCancel;
    private javax.swing.JButton btnListReportPrint;
    private javax.swing.JButton btnListReportSearch;
    private javax.swing.JComboBox cbbListReportMonth;
    private javax.swing.JComboBox cbbListReportTypeDate;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JLabel lblListReport;
    private javax.swing.JLabel lblListReportDate;
    private javax.swing.JLabel lblListReportIncome;
    private javax.swing.JLabel lblListReportPay;
    private javax.swing.JLabel lblListReportTotal;
    private javax.swing.JPanel pnlListReport;
    private javax.swing.JTable tblListReport;
    private javax.swing.JTextField txfListReportDay;
    private javax.swing.JTextField txfListReportIncome;
    private javax.swing.JTextField txfListReportPay;
    private javax.swing.JTextField txfListReportTotal;
    private javax.swing.JTextField txfListReportYear;
    // End of variables declaration//GEN-END:variables

}
